package com.aaa.entity;

import java.util.List;

/**
 * @author ：Teacher陈
 * @date ：Created in 2020/10/29 16:56
 * @description：树形菜单
 * @modified By：
 * @version: 1.0
 */
public class MenuTree {

    /**
     * title : 一级1
     * id : 1
     * field : name1
     * checked : true
     * spread : true
     * children : [{"title":"二级1-1 可允许跳转","id":3,"field":"name11","href":"https://www.layui.com/","children":[{"title":"三级1-1-3","id":23,"field":"","children":[{"title":"四级1-1-3-1","id":24,"field":"","children":[{"title":"五级1-1-3-1-1","id":30,"field":""},{"title":"五级1-1-3-1-2","id":31,"field":""}]}]},{"title":"三级1-1-1","id":7,"field":"","children":[{"title":"四级1-1-1-1 可允许跳转","id":15,"field":"","href":"https://www.layui.com/doc/"}]},{"title":"三级1-1-2","id":8,"field":"","children":[{"title":"四级1-1-2-1","id":32,"field":""}]}]},{"title":"二级1-2","id":4,"spread":true,"children":[{"title":"三级1-2-1","id":9,"field":"","disabled":true},{"title":"三级1-2-2","id":10,"field":""}]},{"title":"二级1-3","id":20,"field":"","children":[{"title":"三级1-3-1","id":21,"field":""},{"title":"三级1-3-2","id":22,"field":""}]}]
     */

    private String title;
    private int id;
    private String field;
    private boolean checked;
    private boolean spread;
    private List<MenuTree> children;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

    public List<MenuTree> getChildren() {
        return children;
    }

    public void setChildren(List<MenuTree> children) {
        this.children = children;
    }
}
